package com.ess.user.dto.res;


import com.ess.user.po.Menu;

import java.util.ArrayList;
import java.util.List;

public class MenuResDto extends Menu {

    private static final long serialVersionUID = 6103506763837895211L;

    /**
     * 子菜单
     */
    private List<Menu> subMenuList;

    /**
     * 是否有子菜单，0-否  1-是
     */
    public String hasLeaf;

    public List<Menu> getSubMenuList() {
        if (null == this.subMenuList) {
            subMenuList = new ArrayList<Menu>();
        }
        return subMenuList;
    }

    public void setSubMenuList(List<Menu> subMenuList) {
        this.subMenuList = subMenuList;
    }

    public String getHasLeaf() {
        return hasLeaf;
    }

    public void setHasLeaf(String hasLeaf) {
        this.hasLeaf = hasLeaf;
    }

}
